import fetch from '@/utils/fetch'

const CheckApi = {
  getPageList (params) {
    return fetch({
      url: '/api/business/goods/page',
      method: 'get',
      params: params
    })
  },
  getDetail (id) {
    return fetch({
      url: '/api/voCheck/' + id,
      method: 'get'
    })
  },
  add (params) {
    return fetch({
      url: '/api/voCheck',
      method: 'post',
      data: params
    })
  },
  init (params) {
    return fetch({
      url: '/api/voCheck/list',
      method: 'get',
      params: params
    })
  },
  update (params) {
    return fetch({
      url: '/api/voCheck/' + params.id,
      method: 'put',
      data: params
    })
  },
  del (params) {
    return fetch({
      url: '/api/voCheck',
      method: 'delete',
      data: params
    })
  }

}
export default CheckApi
